d7d274
@@ -1799,7 +1799,7 @@
public static String readFileToString(final File file) throws IOException {
         InputStream in = null;
         try {
             in = openInputStream(file);
-            return IOUtils.toByteArray(in, file.length());
+            return IOUtils.toByteArray(in); // Do NOT use file.length() - see NET-453
         } finally {
             IOUtils.closeQuietly(in);
         }
